fix for double input