initial buggy slope implementation