added check on float and number