var type bool, fixed syscall that return not float, code cleanup