code now uses short and not float