simple function drawing