return id as integer