added simpler form of parseLong