function declaration finsished