nicer draw function