removed import of diff in beta__function.py