replaced ugly closure with pretty closure