free space method is added