getEmpty functions fixed