added float functionality