adding solution for CONS