code more graceful