after all, I prefer continuous functions; less to debug