better way of blocking