added functions for block, but haven't make the changes