clear code - working