blockedX + nicer code :)