make sure "current" attribute to be an interger