fix for buggy noise functions
extended debugging