cleaned up assertion