fixed plainting with new head implementation