Thanks for the reply.I appreciate it.The problem is i have to submit this code as my project in about 3 days and due to some reasons i cannot get the work done from my friend who wrote the code.And i have no idea about how pic basic pro works.I just need those 2 lines(to send an sms) i can fit in the ALARM HI routine in the code.