put float instead of int for delay