read as int