added function to get free space of account