cleaned up intends