fixed: function redeclaired error