implemented horizon, small fix to def.