GUYs i found a solution to my problem... of another forum... though sharing it with you may help some one at a later point
What is WURFL?
The WURFL is an XML configuration file which contains information about capabilities and features of many mobile devices.
if ur using a Nokai N95 as i do u get the USER AGENT as
Mozilla/5.0 (SymbianOS/9.2 U; Series60/3.1 NokiaN95_8GB/10.0.007; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413
By using this WURFL recognises it as a nokia N95 and sends back the result..
their database is updated regularly .. and u can add your own devices also