fixing leadng zero bug