Playing with RFM12b

Hi guys,
I have problem with RFM12B 433MHz distance range issue, i am not using RFM12B library that is use for Arduino. Yes i am also working with arduino but with my RFM12B code and is working fine. What i found is RFM12B with Arduino library it works upto longer distance and high penetration through walls, even i dug a hole and put my unit inside, then also it was working and it worked upto 1 football ground. BUT with my code i am not getting that much range and penetration. Plz help me with this.
I know it may be Bit Error Rate problem as Low bit rate less bandwidth and more range, i tried that but problem not solved. I am beginner to this understanding big complicated Arduino Library of RFM12B is tough. Thats why i had written my own code but its Performance is not like them.