have to better check the types for empty