apartment functions added