using parsInt to get integer