using intval was bad