added brick functionality