added functions php