1. switched to intval() got get_int() as settype() wasn't working