changed back to int after database change