fix for bounds checking

difficult people