ScaleConverstion Code