code for testing of converting