defining blocks