'def' working