added control for integer values on port