bugfix: duplicated records
add missing _type parameter
check for empty array
shorten interval